package com.aloda.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 用户关注表
 */
@TableName(value = "user_follow")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserFollow {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 粉丝id
     */
    private Long userId;

    /**
     * 关注者id
     */
    private Long followUserId;

    /**
     * 关注时间
     */
    private LocalDateTime createTime;
}
